import { time } from "../utils/day.utc";
import { Request, Response } from "express";

export const globalReqProcMidd = (req: Request, res: Response, next: any) => {
  // 请求日志
  // {time().format('YYYY-MM-DD HH:mm:ss')
  console.log(`\n>>>>>>> ${req.ip} 接口请求：`);
  console.log(`请求接口: ${req.path}`);
  console.log(`请求方式: ${req.method}`);
  next()
}